using System;

namespace FastSocket.SocketBase.Log
{
    /// <summary>
    /// 日志打印到诊断监听器
    /// </summary>
    public class DiagnosticListener : ITraceListener
    {
        public void Debug(string message)
        {
            System.Diagnostics.Trace.WriteLine(message);
        }

        public void Error(string message, Exception ex)
        {
            System.Diagnostics.Trace.TraceError(ex.ToString());
        }

        public void Info(string message)
        {
            System.Diagnostics.Trace.TraceInformation(message);
        }
    }
}